{% extends '__layout_3col.html' %}
{% block pageTitle %}{% parent %} - Изменение профиля пользователя{%endblock%}

{% block layoutLeftColumn %}
    {% include '_left_menu_user.html' %}
{% endblock %}

{% block layoutCenterColumn %}
    <div class="block">
      {% if editProfile %}
        {{editProfile}}
      {% endif %}
      {% if userProfile %}
        <h2>Изменение профиля пользователя - {{userProfile.user.display_name}}</h2>
        <form action="" method="post">
          <input type="hidden" name="action" value="edit" />
          <input type="hidden" name="userId" value="{{userProfile.user.user_id}}" />
          <table class="gridTable">
            <tr>
              <th>Имя</th>
              <td><input type="text" name="first_name" value="{{userProfile.profile.first_name}}" /></td>
            </tr>
            <tr>
              <th>Отчество</th>
              <td><input type="text" name="first_name" value="{{userProfile.profile.middle_name}}" /></td>
            </tr>
            <tr>
              <th>Фамилия</th>
              <td><input type="text" name="first_name" value="{{userProfile.profile.last_name}}" /></td>
            </tr>
            <tr>
              <th>Дата рождения</th>
              <td><input type="text" name="first_name" value="{{userProfile.profile.birth_date}}" /></td>
            </tr>
            <tr>
              <th>Дата найма</th>
              <td><input type="text" name="first_name" value="{{userProfile.profile.hire_date}}" /></td>
            </tr>
            <tr>
              <th>Дата увольнения</th>
              <td><input type="text" name="first_name" value="{{userProfile.profile.fire_date}}" /></td>
            </tr>
            <tr>
              <th>Зарплата</th>
              <td><input type="text" name="first_name" value="{{userProfile.profile.salary}}" /></td>
            </tr>
            <tr>
              <th>Обязанности</th>
              <td><input type="text" name="first_name" value="{{userProfile.profile.responsibilities}}" /></td>
            </tr>
            <tr>
              <th>О себе</th>
              <td><input type="text" name="first_name" value="{{userProfile.profile.about}}" /></td>
            </tr>
            <tr>
              <th>Паспортные данные</th>
              <td><input type="text" name="first_name" value="{{userProfile.profile.passport_data}}" /></td>
            </tr>
            <tr>
              <th>Начальник</th>
              <td><input type="text" name="first_name" value="{{userProfile.user.supervisor_id}}" /></td>
            </tr>
            <tr>
              <th>Статус</th>
              <td><input type="text" name="first_name" value="{{userProfile.user.status_id}}" /></td>
            </tr>
            <tr>
              <th>Должность</th>
              <td><input type="text" name="first_name" value="{{userProfile.user.position_name}}" /></td>
            </tr>
            <tr>
              <th>Фото</th>
              <td><input type="text" name="first_name" value="{{userProfile.user.photo_file}}" /></td>
            </tr>
            <tr>
              <th>Отдел</th>
              <td><input type="text" name="first_name" value="{{userProfile.user.organization_id}}" /></td>
            </tr>
          </table>
        </form>
      {% else %}
        <div><b>Такой пользователь не найден</b></div>
      {% endif %}
    </div>
{% endblock %}

